package com.hp.ssmp.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hp.ssmp.entity.TOrder;
import com.hp.ssmp.entity.dto.DaysOrderNumDto;
import com.hp.ssmp.entity.dto.DaysOrderPriceDto;
import com.hp.ssmp.entity.dto.TOrderDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<TOrder> {
    public Page<TOrderDto> getOrderDtoByPage(Page<TOrderDto> page,
                                             @Param(Constants.WRAPPER) QueryWrapper<TOrderDto> wrapper);
    public List<Integer> getOrderNum();
    public List<DaysOrderPriceDto> getDaysOrderPrice(Integer day);
    public List<DaysOrderNumDto> getDaysOrderNum(Integer day);
 }
